<?php
	$query = "Select * from `photos` where `access`='0' and `owner`='$profile_id' order by `time` desc limit 10";
	$result 		=	 mysql_query($query);
	if (mysql_num_rows($result)) {
		while ($recent = mysql_fetch_assoc($result)){

			$photos .=      "<div class=\"photothumb\"><a href=\"/index.php?do=viewphoto&photo_id=".$recent['id']."\">
											<img border=\"0\" src=\"index.php?do=getphoto&square=1&size=100&id=".$recent['id']."\" title=\"".
											$photoinfo['title']."\"></a></div>";		
			}
	
	} else $photos .= GetLangString ( $lang, "msg_publicphotoalbumempty" );
	$SITE_MIDDLE .= FormatElement( GetLangString ($lang, "txt_latestphotos") , "$photos" ) ;	
?>
